import {
  createRouter,
  createWebHashHistory
} from 'vue-router'

const routes = [{
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/page',
    name: 'Page',
    redirect: '/firstPage',
    component: () => import('../views/Page.vue'),
    children: [{
      path: '/firstPage',
      name: 'firstPage',
      component: () => import('../views/components/FirstContent.vue'),
    }]
  }
]


const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router